//
//  CJDingDanButton.m
//  MyDoctorUser
//
//  Created by apple on 16/10/5.
//  Copyright © 2016年 Change. All rights reserved.
//

#import "CJDingDanButton.h"

@implementation CJDingDanButton

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    CGFloat imageX = self.frame.size.width / 2 - 20;
    CGFloat imageW = 40 ;
    CGFloat imageH = 40 ;
    CGFloat imageY = 10 ;
    
    
    self.imageView.frame =  CGRectMake(imageX, imageY, imageW, imageH);
    self.titleLabel.frame = CGRectMake(0, 60, self.frame.size.width, 15);
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    
}
@end
